//
//  HelloWorldLayer.h
//  TileBasedGame
//
//  Created by admin on 3/22/12.
//  Copyright __MyCompanyName__ 2012. All rights reserved.
//


// When you import this file, you import all the cocos2d classes
#import "cocos2d.h"
#import "SimpleAudioEngine.h"

@class HelloWorldLayer;

@interface HelloWorldHud : CCLayer {
    
    HelloWorldLayer* _gamePlayer;
    CCLabelTTF *label;
}
@property(nonatomic, retain) HelloWorldLayer* gameLayer;
- (void)numCollectedChanged:(int)numCollected;
@end

// HelloWorldLayer
@interface HelloWorldLayer : CCLayer
{
    CCTMXTiledMap*      _tileMap;
    CCTMXLayer*         _background;
    
    CCSprite*           _player;
    
    CCTMXLayer*         _meta;
    
    CCTMXLayer*         _foreground;
    
    int _numCollected;
    HelloWorldHud * _hud;
    
    int _mode;
    
    NSMutableArray *_enemies;
    NSMutableArray *_projectiles;
}
@property(nonatomic, retain) CCTMXTiledMap* tileMap;
@property(nonatomic, retain) CCTMXLayer* background;

@property(nonatomic, retain) CCSprite* player;

@property(nonatomic, retain) CCTMXLayer* meta;

@property(nonatomic, retain) CCTMXLayer* foreground;

@property(nonatomic, assign) int numCollected;
@property(nonatomic, retain)  HelloWorldHud * hud;

@property (nonatomic, assign) int mode;

// returns a CCScene that contains the HelloWorldLayer as the only child
+(CCScene *) scene;

@end
